package com.gz.slin.system.service.impl;

import com.gz.slin.system.dao.UserDao;
import com.gz.slin.system.pojo.User;
import com.gz.slin.system.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2016/8/15.
 */
@Service("userService")
public class UserServiceImpl implements UserService {
    @Resource
    private UserDao userDao;

    public User getUserById(Long userId) {
        return userDao.selectByPrimaryKey(userId);
    }

    public List<User> selectAll() {
        return userDao.selectAll();
    }
}
